insertEffect

abstract fun insertEffect(block: DesignBlock, effectBlock: DesignBlock, index: Int)

Inserts an effect at the given index into the list of effects of the given block. The same effect can appear multiple times in the list and won't be removed if appended again. Required scope: "appearance/effect"

Parameters

block

the block to update.

effectBlock

the effect to insert.

index

the index at which the effect shall be inserted.